package community.hospital.service.domain;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import community.hospital.entity.Order;
import community.hospital.entity.request.ListOrderRequest;

import java.util.List;

/**
 * @author yindingjie
 */
public interface OrderService extends IService<Order> {
    Boolean updateOrderState(Long orderId, Integer state);

    Page<Order> listOrder(ListOrderRequest request);

    Long countByScheduleId(Long scheduleId);

    List<Order> getOrderByUserId(Long id);

    int getRank(Long scheduleId, Long userId);

    Order getAfterTomorrowOrder(Long id);

}
